<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <did id="app">
        <input type="radio" value="男" name="sex" v-model="sex">男
        <input type="radio" value="女" name="sex" v-model="sex">女
        <h2>性别：{{sex}}</h2>
        <br><br><br>

        <input type="checkbox" name="hob" v-model="hob" value="吃饭">吃饭
        <input type="checkbox" name="hob" v-model="hob" value="睡觉">睡觉
        <h2>喜欢：{{hob}}</h2>
    </did>

    <script type="text/javascript">
        new Vue({
            el: "#app",
            data: {
                sex:"" ,
                hob:[]
            }
        })
    </script>
</body>
</html>